import { createApp } from "vue";
import { router } from "./router";
import "@general/styles";
import "@general/styles/antd";

import App from "./App.vue";
import { setupI18n } from "./locales";

async function bootstrap(namespace: string) {
  const app = createApp(App);
  await setupI18n(app);
  app.use(router);
  app.mount("#app");
}

export { bootstrap };
